import http from '../utils/http.js'

// 消息状态
export const apiMsgStatus = data => http.get('/user/user/user/view')

// 点赞列表
export const apiFabulousList = data => http.get('/user/user/like/index-praise')

// 点赞
export const apiFabulous = data => http.get('/user/user/like/create', data)

// 取消点赞
export const apiCancelFabulous = data => http.post('/user/user/like/cancel', data)

// 关注列表
export const apiFollowList = data => http.get('/user/user/fans/index-follow', data)

// 粉丝列表
export const apiFansList = data => http.get('/user/user/fans/index', data)

// 关注
export const apiFollow = data => http.post('/user/user/fans/create', data)

// 取消关注
export const apiCancelFollow = data => http.post('/user/user/fans/cancel', data)

// 发送消息
export const apiSendMsg = data => http.post('/user/user/message/create', data)

// 消息-消息列表
export const apiMsgList = data => http.get('/user/user/message-group/index')

// 用户-消息列表
export const apiUserMsgList = data => http.get('/user/user/message/index', data)

// 消息-未读统计
export const apiUnreadMsg = data => http.get('/user/user/message-group/total')

// 消息窗口-删除
export const apiMsgDelete = data => http.post('/user/user/message-group/delete', data)

// 作品评论-列表
export const apiCommentList = data => http.get('/user/user/comment/index', data)

// 评论发送
export const apiCommentSend = data => http.post('/user/user/comment/create', data)
